include(CMakeFindDependencyMacro)

list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

find_package(Protobuf 3.10.0 REQUIRED QUIET)
if (NOT Protobuf_FOUND)
    find_dependency(Protobuf 3.10.0 REQUIRED)
endif()

find_package(gRPC 1.26.0 REQUIRED QUIET)
if (NOT gRPC_FOUND)
    find_dependency(gRPC 1.26.0 REQUIRED)
endif()

find_dependency(CppKafka 0.3.1 REQUIRED)

if (NOT TARGET Lgraph::lgraph)
  include ("${CMAKE_CURRENT_LIST_DIR}/LgraphTargets.cmake")
endif ()